package Demo24;

import java.io.*;

public class Demo24 {

    public static void main(String[] args) throws IOException {

//       Reader reader = new FileReader("./test.txt");
//
//        while (true) {
//
//            char[] chars = new char[1024];
//            int n = reader.read(chars);
//            if (n == -1) {
//                break;
//            }
//            for (int i = 0; i < n; i++) {
//                System.out.println(chars[i]);
//            }
//        }

        Writer writer = new FileWriter("./test.txt");

        writer.write("你好世界");
        char[] arr = {'z','k'};
        writer.write(arr);

        writer.flush();



    }

}
